package com.MarkToTop.util;

import java.awt.*;

/**
 * @CreateDate: Created in 2022-06-22 11:25
 * @Author: hbian
 * @Description:   游戏中的常量类。->可控参数
 */
public class Constant {

    //窗口大小
    public static final int Frame_Height = 830;
    public static final int Frame_Width = 1450;
    //标题
    public static final String GAME_TITLE = "我是一只小小小小鸟";
    //背景图片资源路径
    public static final String BG_IMG_PATH = "Resourse/bg.png";
    public static final String[] Birds_PATH = {"Resourse/bird_normal.png","Resourse/bird_up.png","Resourse/bird_down.png","Resourse/bird_die.png"};
    public static final String[] Clouds_PATH = {"Resourse/cloud0.png","Resourse/cloud1.png"};
    public static final String[] Barriers_IMG_PATH = {"Resourse/barrier.png","Resourse/barrier_up.png","Resourse/barrier_down.png"};
    public static final String TITLE_IMG_PATH ="Resourse/title.png";
    public static final String NOTICE_IMG_PATH ="Resourse/start.png";
    public static final String SOCRE_IMG_PATH ="Resourse/score.png";
    public static final String OVER_IMG_PATH ="Resourse/over.png";
    public static final String AGAIN_IMG_PATH ="Resourse/again.png";

    //游戏的刷新间隔
    public static final int GAME_INTERAVL = 33;
    //游戏背景颜色
    public static final Color BG_Color = new Color(0x4bc4cf);

    //定义标题栏高度
    public static final int TOP_BAR_HEIGHT = 30;

    //屏幕中最多云彩数量
    public static final int MAX_CLOUD_COUNT = 10;

    //定义生成云朵的概率值、飞行速度
    public static final int CLOUD_BORN_PERCENT = 5;
    public static final int CLOUD_FLY_SPEED = 2;

    //定义障碍物的飞行速度
    public static final int BARRIES_MIN_SPEED = 5;
    public static final int BARRIES_MAX_SPEED = 10;

    //对象池中障碍物的数量
    public static final int INIT_Barrier_COUNT = 16;
    public static final int MAX_Barrier_COUNT = 20;

    //字体
    public static final Font TIME_FONT = new Font("华文琥珀",Font.BOLD,26);

    //分数文件目录
    public static final String SCORE_FILE_PATH = "./score";
}
